from enum import Enum


class RuleType(Enum):
    basics_single = ("basicsSingle", "基础属性-单值规则")
    basics_multi = ("basicsMulti", "基础属性-联动规则")
    classify_single = ("classifySingle", "分类属性-单值规则")
    classify_multi = ("classifyMulti", "分类属性-联动规则")
    RULE_COMMON_CATE = ("_inner_attr_classify", "通用规则")

    def __init__(self, code, desc):
        self.code = code
        self.desc = desc
